<%@ Page Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="NoSite.aspx.cs" Inherits="NoSite" Title="Acms Site Creation" %>
<asp:Content ID="Content1" ContentPlaceHolderID="phMain" Runat="Server">
    <div style="text-align:center">
        <fieldset>
            <p>There is currently no Acms web site set up to administrate.</p>
            <p>Please select a web site to administe or create a new one?</p>
            <fieldset>
                <legend>Select Existing</legend>
                <asp:GridView ID="gvSites" runat="server" AutoGenerateColumns="False" DataSourceID="dsSite" OnSelectedIndexChanged="gvSites_SelectedIndexChanged">
                    <Columns>
                        <acmswc:IndexField />
                        <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                        <asp:BoundField DataField="Root" HeaderText="Root" SortExpression="Root" />
                        <asp:CommandField ShowSelectButton="True" />
                    </Columns>
                </asp:GridView>
            </fieldset>
            <fieldset>
                <legend>Create New</legend>
                <asp:DetailsView ID="dvSite" DefaultMode="Insert" runat="server" DataSourceID="dsSite" AutoGenerateRows="False" OnItemInserted="dvSite_ItemInserted" >
                    <Fields>
                        <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                        <asp:BoundField DataField="Root" HeaderText="Root" SortExpression="Root" />
                        <asp:CommandField ButtonType="Button" InsertText="Create" ShowInsertButton="True" ShowCancelButton="False" />
                    </Fields>
                </asp:DetailsView>
            </fieldset>
            <acmsdc:SiteDataSource ID="dsSite" runat="server" OnUpdatingData="dsSite_UpdatingData" OnSelectData="dsSite_SelectData">
            </acmsdc:SiteDataSource>
        </fieldset>
    </div>
</asp:Content>

